extends Control

func _ready() -> void:
	for level_button in get_tree().get_nodes_in_group("level_button"):
		if level_button.has_signal("level_button_clicked"):
			level_button.level_button_clicked.connect(Callable(self, "_on_LevelButton_pressed"))

func _on_LevelButton_pressed(level_path) -> void:
	GameManager.load_level(level_path)


